package io.demo.builderss;

/**
 * @author create by zhangpengfei at 2021/9/29 18:05
 */

public class Buttons extends JacketAccessories {

    Clothes clothes;

    public Buttons(Clothes clothes) {
        desc = clothes.desc + ", Buttons";
        this.clothes = clothes;
    }

    @Override
    public double cost() {
        return clothes.cost() + 2;
    }
}
